import { IKeyMap } from "../Interface/Pptx";
import { IColorMatch } from "../Interface/ColorMatch";

/**
 * 配色方案 给出 6 个系列色，及文本颜色、背景颜色、边框颜色、形变节点颜色
 *  https://baijiahao.baidu.com/s?id=1805377179451929557&wfr=spider&for=pc
 *
 *  节点填充颜色 nodeFillColor
 *  节点边框颜色 nodeStrokeColor
 *
 *  节点文本颜色 nodeTextColor
 *
 *  幻灯片背景填充 slideFillColor
 *  幻灯片边框颜色 slideStrokeColor
 *
 *  形变节点颜色 transformerColor
 *
 *  表头背景色 tableHeaderFillColor
 *  表格斑马纹 tableStripeColor []
 *  表格边框 tableBorderColor
 *  表格文字颜色 tableTextColor
 *
 *  统计图轴线颜色 seriesAxisColor
 *  统计图网格颜色 seriesGridColor
 *  统计图标题颜色 seriesTitleColor
 *  统计图系列色 seriesColor ：[] 需要提供 5 个颜色 - 支持自定义系列色
 *
 *
 */

const ColorMatch1 = {
  nodeFillColor: "#FAD2CC",
  nodeStrokeColor: "transparent",
  nodeTextColor: "#000",

  slideFillColor: "#fff",
  slideStrokeColor: "transparent",
  transformerColor: "#F58882",

  tableHeaderFillColor: "#F2C4CE",
  tableStripeColor: ["#fff4f0", "#FEFCED"],
  tableBorderColor: "rgba(0,0,0,0.1)",
  tableTextColor: "rgba(0,0,0,0.8)",

  seriesAxisColor: "rgba(0,0,0,0.6)",
  seriesGridColor: "rgba(0,0,0,0.1)",
  seriesTitleColor: "rgba(0,0,0,0.8)",
  seriesColor: ["#4EA1D3", "#F4A4A4", "#F8C8C6", "#9AA4EC", "#6474E5"],
};

const ColorMatch2 = {
  nodeFillColor: "#FFA943",
  nodeStrokeColor: "transparent",
  nodeTextColor: "#000",

  slideFillColor: "#FFFCF6",
  slideStrokeColor: "transparent",
  transformerColor: "#E33D6F",

  tableHeaderFillColor: "#EE7052",
  tableStripeColor: ["#fff4f0", "#FEFCED"],
  tableBorderColor: "rgba(0,0,0,0.1)",
  tableTextColor: "rgba(0,0,0,0.8)",

  seriesAxisColor: "rgba(0,0,0,0.6)",
  seriesGridColor: "rgba(0,0,0,0.1)",
  seriesTitleColor: "rgba(0,0,0,0.8)",
  seriesColor: ["#f5699f", "#F4A4A4", "#F8C8C6", "#9AA4EC", "#9852C4"],
};

const ColorMatch3 = {
  nodeFillColor: "#FEF07A",
  nodeStrokeColor: "transparent",
  nodeTextColor: "#fff",

  slideFillColor: "#211C06",
  slideStrokeColor: "transparent",
  transformerColor: "#ECAF40",

  tableHeaderFillColor: "#70FE9C",
  tableStripeColor: ["#f0fff9", "#bbf0de"],
  tableBorderColor: "rgba(0,0,0,0.1)",
  tableTextColor: "rgba(0,0,0,0.8)",

  seriesAxisColor: "rgba(0,0,0,0.6)",
  seriesGridColor: "rgba(0,0,0,0.1)",
  seriesTitleColor: "rgba(0,0,0,0.8)",
  seriesColor: ["#22EFBC", "#72A4E0", "#F8C8C6", "#9AA4EC", "#22E7FE"],
};
const ColorMatch4 = {
  nodeFillColor: "#71895D",
  nodeStrokeColor: "transparent",
  nodeTextColor: "#fff",

  slideFillColor: "#F2F4F0",
  slideStrokeColor: "transparent",
  transformerColor: "#7EAE28",

  tableHeaderFillColor: "#ABAE3C",
  tableStripeColor: ["#f9fced", "#e1f0e7"],
  tableBorderColor: "rgba(0,0,0,0.1)",
  tableTextColor: "rgba(0,0,0,0.8)",

  seriesAxisColor: "rgba(0,0,0,0.6)",
  seriesGridColor: "rgba(0,0,0,0.1)",
  seriesTitleColor: "rgba(0,0,0,0.8)",
  seriesColor: ["#C0875F", "#F4A4A4", "#CFCB22", "#9AA4EC", "#DE9222"],
};
const ColorMatch5 = {
  nodeFillColor: "#D046B2",
  nodeStrokeColor: "transparent",
  nodeTextColor: "#fff",

  slideFillColor: "#FDF8FA",
  slideStrokeColor: "transparent",
  transformerColor: "#EF88BC",

  tableHeaderFillColor: "#D34817",
  tableStripeColor: ["#ffeadb", "#f0fcff"],
  tableBorderColor: "rgba(0,0,0,0.1)",
  tableTextColor: "rgba(0,0,0,0.8)",

  seriesAxisColor: "rgba(0,0,0,0.6)",
  seriesGridColor: "rgba(0,0,0,0.1)",
  seriesTitleColor: "rgba(0,0,0,0.8)",
  seriesColor: ["#F4B94E", "#F47E95", "#D66278", "#C25679", "#BF4C82"],
};
const ColorMatch6 = {
  nodeFillColor: "#FF8F73",
  nodeStrokeColor: "transparent",
  nodeTextColor: "#000",

  slideFillColor: "#FDF8FA",
  slideStrokeColor: "transparent",
  transformerColor: "#F58882",

  tableHeaderFillColor: "#FF65CC",
  tableStripeColor: ["#ffe0f2", "#ffd0c2"],
  tableBorderColor: "rgba(0,0,0,0.1)",
  tableTextColor: "rgba(0,0,0,0.8)",

  seriesAxisColor: "rgba(0,0,0,0.6)",
  seriesGridColor: "rgba(0,0,0,0.1)",
  seriesTitleColor: "rgba(0,0,0,0.8)",
  seriesColor: ["#F4A4A4", "#E4A290", "#F35B44", "#D53F8B", "#D046B2"],
};
const ColorMatch7 = {
  nodeFillColor: "#3A97E0",
  nodeStrokeColor: "transparent",
  nodeTextColor: "#000",

  slideFillColor: "#FFFFFF",
  slideStrokeColor: "transparent",
  transformerColor: "#20E4F9",

  tableHeaderFillColor: "#05D3FF",
  tableStripeColor: ["#d2edfa", "#f0faff"],
  tableBorderColor: "rgba(0,0,0,0.1)",
  tableTextColor: "rgba(0,0,0,0.8)",

  seriesAxisColor: "rgba(0,0,0,0.6)",
  seriesGridColor: "rgba(0,0,0,0.1)",
  seriesTitleColor: "rgba(0,0,0,0.8)",
  seriesColor: ["#7BC0EE", "#5EAEE4", "#3A97E0", "#007ADD", "#026CD4"],
};

const ColorMatch8 = {
  nodeFillColor: "#FD5959",
  nodeStrokeColor: "transparent",
  nodeTextColor: "#fff",

  slideFillColor: "#FFFFFF",
  slideStrokeColor: "transparent",
  transformerColor: "#F58882",

  tableHeaderFillColor: "#DBA41B",
  tableStripeColor: ["#ffd6dc", "#e2e8da"],
  tableBorderColor: "rgba(0,0,0,0.1)",
  tableTextColor: "rgba(0,0,0,0.8)",

  seriesAxisColor: "rgba(0,0,0,0.6)",
  seriesGridColor: "rgba(0,0,0,0.1)",
  seriesTitleColor: "rgba(0,0,0,0.8)",
  seriesColor: ["#F4B94E", "#F47E95", "#CFCA6E", "#F46D43", "#DD524F"],
};

export const COLOR_MATCH_ARRAY: IKeyMap<string, IColorMatch> = {
  ColorMatch1,
  ColorMatch2,
  ColorMatch3,
  ColorMatch4,
  ColorMatch5,
  ColorMatch6,
  ColorMatch7,
  ColorMatch8,
};
